package com.fms.gui.emailer.components;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;

import com.fms.model.messaging.IEmailService;

public class SendButton extends JButton implements ActionListener
{
	/**
	 * 
	 */
	private static final long	serialVersionUID	= 7357307320256773731L;
	private IEmailService	service;

	public SendButton(IEmailService _service)
	{
		this.service = _service;
		this.setText("Send Email");
		this.addActionListener(this);
	}

	@Override
	public void actionPerformed(ActionEvent arg0)
	{
		this.service.sendMail();		
	}
}
